/**
 * 
 */
package cre.gutwo.imp;

import cre.gutwo.util.Constants;
import org.apache.poi.ss.usermodel.Cell;

import cre.gutwo.domain.DataModel;
import cre.gutwo.util.PoiUtils;

/**
 * @author Cre.Gu
 *
 */
public class HwImp extends DefaultImp {

	@Override
	protected void putValue(DataModel dm, Cell cell) {
		int i = cell.getColumnIndex();
		String value = PoiUtils.getStringCellValue(cell);

		switch (i) {
		case 3:
			dm.put("DEVICE_ID", value);
			break;
		case 4:
			dm.put(Constants.DEVICENAME, value);
			break;
		case 5:
			dm.put("ORGANIZATION", "");
			break;
		case 6:
			dm.put("PERSON", value);
			break;
		case 7:
			dm.put("WMODEL", value);
			break;
		case 8:
			dm.put("WNUMBEROFPROCESSORS", "");
			break;
		case 9:
			dm.put("WSYSTEMTYPE", "");
			break;
		case 10:
			dm.put("WVIDEOMODEDESCRIPTION", "");
			break;
		case 11:
			dm.put("SERIAL_NUMBER", value);
			break;
		case 12:
			dm.put("LASTCONNECTDATE", value);
			break;
		default:
			break;
		}
	}

}
